package com.example.evaluate.model;

import com.alibaba.fastjson.JSON;
import lombok.*;

import java.util.ArrayList;

@Setter
@Getter
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class TrueTeacher {
    private int trueTeacherId; //老师工号
    private String trueTeacherName; //老师姓名
    private String trueTeacherPassword; //老师密码
    private ArrayList<Teacher> teachers;    //由于一个老师有不同的课程 则有不同的课程列表

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    public TrueTeacher(int trueTeacherId,String trueTeacherName, String trueTeacherPassword) {
        this.trueTeacherName = trueTeacherName;
        this.trueTeacherPassword = trueTeacherPassword;
        this.trueTeacherId = trueTeacherId;
    }

    public TrueTeacher(int trueTeacherId,String trueTeacherPassword) {
        this.trueTeacherPassword = trueTeacherPassword;
        this.trueTeacherId = trueTeacherId;
    }
}
